<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看投票</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
<body>
<jsp:include page="top.jsp" />
<div id="vote" class="wrap">
	<h2>查看投票</h2>
	<ul class="list">
		<li>
			<h4><s:property value="#session.subject.vsTitle"/></h4>
			<p class="info">共有 <s:property value="#session.subject.voteOptions.size"/> 个选项，已有 <s:property value="#session.votes[vsId]"/> 个网友参与了投票。</p>
				<ol>
				  <s:iterator var="options" value="#session.options" status="status"> 
					<li><s:property value="#options.voOption"/>
						<div class="rate">
							<div class="ratebg"><div class="percent" style="width:<s:property value='#session.statPercent[voId]'/>%"></div></div>
							<p><s:property value="#session.stat[voId]"/>票<span>(<s:property value="#session.statPercent[voId]"/>%)</span></p>
						</div>
					</li>
				  </s:iterator>
				</ol>
				<div class="goback"><a href="listSubject.action">返回投票列表</a></div>
		</li>
	</ul>
</div>
<div id="footer" class="wrap">
	北大青鸟 &copy; 版权所有
</div>
</body>
</html>
